package com.hailian.fintech.hlrenting_houseserver.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hailian.fintech.hlrenting_houseserver.entity.Tenant;
import com.hailian.fintech.hlrenting_houseserver.entity.TenantVo;
import com.hailian.fintech.hlrenting_houseserver.mapper.TenantMapper;
import com.hailian.fintech.hlrenting_houseserver.service.ITenantService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wyt
 * @since 2020-05-21
 */
@Service
@Slf4j
public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant> implements ITenantService {

    @Autowired
    private TenantMapper tenantMapper;

    /***
     * 租客列表查询
     * @param page
     * @param vo
     * @return
     */
    @Override
    public Page<TenantVo> selectObject(Page page, TenantVo vo) {
        return tenantMapper.selectObject(page,vo);
    }
}
